<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function Person() {

    }

    // Person.prototype = {
    //   name: 'ada',
    //   sayName() {

    //   }
    // }

    const p1 = new Person();
    console.log(p1);
    console.log(p1.constructor == Person);
    console.log(p1.constructor == Object);
    console.log(p1.constructor);
  </script>
</body>

</html>